/*
 * TesteBD.java
 *
 * Created on 14 de Dezembro de 2006, 23:12
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package magchess10S.rn;

/**
 *
 * @author User
 */
public class TesteBD {
    private String apelido;
    private String senha;
    private ControleNaoJogoServidor c;
    /** Creates a new instance of TesteBD */
    public TesteBD() {
        apelido = "Maguila";
        senha = "idiota";
        try
        {
            c = new ControleNaoJogoServidor ();
        }
        catch (Exception e){
         e.printStackTrace();
        e.toString();
        }
        
    }
    
    public boolean CheckFuncao ()
    {
        boolean ehValido=false ;
        try
        {
          ehValido = c.consultarBD(apelido,senha);
        }
        catch (Exception e){System.out.println(e.toString());}   
        return ehValido;
    }

}
